import http from '@/utils/http'

/**
 * 登录接口
 * @param account
 * @param password
 * @return {*}
 */
export function loginAPI({ account, password }) {
  return http({
    url: '/login',
    method: 'POST',
    data: {
      account,
      password
    }
  })
}

/**
 * 猜你喜欢接口
 * @param limit
 * @return {*}
 */
export const getLikeListAPI = ({ limit = 4 }) => {
  return http({
    url:'/goods/relevant',
    method: 'GET',
    params: {
      limit
    }
  })
}
